package com.yx.feign.api;

import com.yx.vo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Classname OrderService
 * @Date 2021/07/27 15:45
 * @Author by yx
 * @Description TODO:
 */
@FeignClient(
        name = "order",
        path = "/orderController"
)
public interface OrderService {

    @GetMapping("/getOrderByOid/{oid}")
    Order getOrderByOid(@PathVariable String oid);
}
